﻿using UnityEngine;
using System.Collections;

namespace TileMapClasses
{
	/// <summary>
	/// Tent.
	/// </summary>
	public class tent : MonoBehaviour
	{
		private static tent m_instance; 
		// Use this for initialization
		void Start ()
		{
			transform.position = new Vector3 (-99, -99, -99);
			m_instance = this;
		}
	
		// Update is called once per frame
		void Update ()
		{
	
		}

		/// <summary>
		/// Pitchs the tent.
		/// </summary>
		/// <param name="position">Position.</param>
		public void pitchTent (Vector3 position)
		{
			transform.position = position;
		}

		/// <summary>
		/// Gets the tent instance.
		/// </summary>
		/// <value>The instance.</value>
		public static tent Instance {
			get {
				if (m_instance == null) {
					Debug.LogError ("No tent assigned to game object.");
				}
				return m_instance;
			}
		}
	}
}
